<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="lib.css" type='text/css' />
<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
<link rel='start' href='../index.html' title='Python documentation Index' />
<link rel="first" href="lib.html" title='Python library Reference' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="dom-conformance.html" />
<link rel="prev" href="node216.html" />
<link rel="parent" href="module-xml.dom.html" />
<link rel="next" href="dom-implementation-objects.html" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name='aesop' content='information' />
<title>8.6.2 Objects in the DOM </title>
</head>
<body>
<div class="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="8.6.1 module Contents"
  href="node216.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></a></td>
<td class='online-navigation'><a rel="parent" title="8.6 xml.dom  "
  href="module-xml.dom.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up one Level' width='32' /></a></td>
<td class='online-navigation'><a rel="next" title="8.6.2.1 domimplementation Objects"
  href="dom-implementation-objects.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></a></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></a></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
  border='0' height='32'  alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></a></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="node216.html">8.6.1 Module Contents</a>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="module-xml.dom.html">8.6 xml.dom  </a>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="dom-implementation-objects.html">8.6.2.1 DOMImplementation Objects</a>
</div>
<hr /></div>
</div>
<!--End of Navigation Panel-->

<h2><a name="SECTION0010620000000000000000"></a><a name="dom-objects"></a>
<br>
8.6.2 Objects in the DOM 
</h2>

<p>
The definitive documentation for the DOM is the DOM specification from
the W3C.

<p>
Note that DOM attributes may also be manipulated as nodes instead of
as simple strings.  It is fairly rare that you must do this, however,
so this usage is not yet documented.

<p>
<div class="center"><table class="realtable">
  <thead>
    <tr>
      <th class="left"  >Interface</th>
      <th class="left"  >Section</th>
      <th class="left"  >Purpose</th>
      </tr>
    </thead>
  <tbody>
    <tr><td class="left"   valign="baseline"><tt class="class">DOMImplementation</tt></td>
        <td class="left"  ><a href="dom-implementation-objects.html#dom-implementation-objects">8.6.2</a></td>
        <td class="left"  >Interface to the underlying implementation.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">Node</tt></td>
        <td class="left"  ><a href="dom-node-objects.html#dom-node-objects">8.6.2</a></td>
        <td class="left"  >Base interface for most objects in a document.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">NodeList</tt></td>
        <td class="left"  ><a href="dom-nodelist-objects.html#dom-nodelist-objects">8.6.2</a></td>
        <td class="left"  >Interface for a sequence of nodes.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">DocumentType</tt></td>
        <td class="left"  ><a href="dom-documenttype-objects.html#dom-documenttype-objects">8.6.2</a></td>
        <td class="left"  >Information about the declarations needed to process a document.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">Document</tt></td>
        <td class="left"  ><a href="dom-document-objects.html#dom-document-objects">8.6.2</a></td>
        <td class="left"  >Object which represents an entire document.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">Element</tt></td>
        <td class="left"  ><a href="dom-element-objects.html#dom-element-objects">8.6.2</a></td>
        <td class="left"  >Element nodes in the document hierarchy.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">Attr</tt></td>
        <td class="left"  ><a href="dom-attr-objects.html#dom-attr-objects">8.6.2</a></td>
        <td class="left"  >Attribute value nodes on element nodes.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">Comment</tt></td>
        <td class="left"  ><a href="dom-comment-objects.html#dom-comment-objects">8.6.2</a></td>
        <td class="left"  >Representation of comments in the source document.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">Text</tt></td>
        <td class="left"  ><a href="dom-text-objects.html#dom-text-objects">8.6.2</a></td>
        <td class="left"  >Nodes containing textual content from the document.</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="class">ProcessingInstruction</tt></td>
        <td class="left"  ><a href="dom-pi-objects.html#dom-pi-objects">8.6.2</a></td>
        <td class="left"  >Processing instruction representation.</td></tr></tbody>
</table></div>

<p>
An additional section describes the exceptions defined for working
with the DOM in Python.

<p>

<p><br /></p><hr class='online-navigation' />
<div class='online-navigation'>
<!--Table of Child-Links-->
<a name="CHILD_LINKS"><strong>Subsections</strong></a>

<ul class="ChildLinks">
<li><a href="dom-implementation-objects.html">8.6.2.1 DOMImplementation Objects</a>
<li><a href="dom-node-objects.html">8.6.2.2 Node Objects</a>
<li><a href="dom-nodelist-objects.html">8.6.2.3 NodeList Objects</a>
<li><a href="dom-documenttype-objects.html">8.6.2.4 DocumentType Objects</a>
<li><a href="dom-document-objects.html">8.6.2.5 Document Objects</a>
<li><a href="dom-element-objects.html">8.6.2.6 Element Objects</a>
<li><a href="dom-attr-objects.html">8.6.2.7 Attr Objects</a>
<li><a href="dom-attributelist-objects.html">8.6.2.8 NamedNodeMap Objects</a>
<li><a href="dom-comment-objects.html">8.6.2.9 Comment Objects</a>
<li><a href="dom-text-objects.html">8.6.2.10 Text and CDATASection Objects</a>
<li><a href="dom-pi-objects.html">8.6.2.11 ProcessingInstruction Objects</a>
<li><a href="dom-exceptions.html">8.6.2.12 Exceptions</a>
</ul>
<!--End of Table of Child-Links-->
</div>

<div class="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="8.6.1 module Contents"
  href="node216.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></a></td>
<td class='online-navigation'><a rel="parent" title="8.6 xml.dom  "
  href="module-xml.dom.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up one Level' width='32' /></a></td>
<td class='online-navigation'><a rel="next" title="8.6.2.1 domimplementation Objects"
  href="dom-implementation-objects.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></a></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></a></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
  border='0' height='32'  alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></a></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="node216.html">8.6.1 Module Contents</a>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="module-xml.dom.html">8.6 xml.dom  </a>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="dom-implementation-objects.html">8.6.2.1 DOMImplementation Objects</a>
</div>
</div>
<hr />
<span class="release-info">Release 2.5.1, documentation updated on 18th April, 2007.</span>
</div>
<!--End of Navigation Panel-->
<address>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</address>
</body>
</html>
